package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.ProductBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface ProductService extends BaseService<ProductBean> {

	ProductBean getProductBeanById(String id) throws Exception;
	
	void removeProductBeanById(String id) throws Exception;
	
	void removeProductBeanByIds(String ids) throws Exception;
	
	ProductBean saveProductBean(ProductBean crm) throws Exception;
	
	ProductBean updateProductBean(ProductBean crm) throws Exception;
	
	Page<ProductBean>  findProductBeanByCond(ProductBean bean,
			Page<ProductBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveProductBeanExt(String sql) throws Exception;

	String findProductBeanExtCreate(String tableName) throws Exception;

	String findProductBeanExtEdit(String tableName, String id)
			throws Exception;

	String findProductBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasProductBeanExtData(String tableName, String id)
			throws Exception;
}